def limit(missing, coin):
    return missing / coin + 1

required = 200
solutions = 0

for a200 in xrange(0, limit(required, 200)):
    r100 = required - a200 * 200
    for a100 in xrange(0, limit(r100, 100)):
        r50 = r100 - a100*100
        for a50 in xrange(0, limit(r50, 50)):
            r20 = r50 - a50*50
            for a20 in xrange(0, limit(r20, 20)):
                r10 = r20 - a20*20
                for a10 in xrange(0, limit(r10, 10)):
                    r5 = r10- a10*10
                    for a5 in xrange(0, limit(r5, 5)):
                        r2 = r5 - a5*5
                        for a2 in xrange(0, limit(r2, 2)):
                            solutions += 1

print solutions
